﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="a_modules.ascx.cs" Inherits="administrator_uc_admin_a_modules" %>
<script language="javascript">
    function GetItemFromListBoxModule(MyList) {
        var itemvalue = MyList.options[MyList.selectedIndex].value;       
        document.getElementById('<%= txtModuleID.ClientID %>').value = itemvalue;
    }
</script>
<table cellspacing="1" class="classtable">
<tr>
    <td class="classtitle" colspan="2">
        THÊM MỚI
    </td>                
</tr>
<tr>
    <td class="classmessage" colspan="2">
        <asp:Label ID="lblMessage" runat="server"></asp:Label>
    </td>
</tr>
<tr>
    <td width="140px">
       Chọn mã chức năng:</td>
    <td> </td>
    </tr>  
<tr>
    <td width="140px" valign="top">
        <asp:ListBox ID="ListBoxMoudle" runat="server" ondblclick="javascript:GetItemFromListBoxModule(this);" Width="140px" Height="150px"></asp:ListBox>
    </td>
    <td valign="top">
        <table cellspacing="1" class="classtable">
        <tr>
            <td class="classcolleft">
                Mã chức năng:</td>
            <td class="classcolright">
                <asp:TextBox ID="txtModuleID" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtModuleID" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>
        </tr> 
        <tr>
            <td class="classcolleft">
                Tên chức năng:</td>
            <td class="classcolright">
                <asp:TextBox ID="txtModuleName" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtModuleName" ErrorMessage="(*)"></asp:RequiredFieldValidator>      
            </td>
        </tr>   
        <tr>
            <td class="classcolleft">
                Thứ tự sắp xếp:</td>
            <td class="classcolright">
                <asp:TextBox ID="txtSortIndex" CssClass="classtextsort" runat="server" Width="80px"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator2" runat="server" 
                    ControlToValidate="txtSortIndex" ErrorMessage="(0-&gt;1000)" 
                    MaximumValue="1000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td class="classcolleft">
                &nbsp;</td>
            <td class="classcolright">
                <asp:LinkButton ID="LinkButton1" runat="server" onclick="lbtAddNewItem_Click">
                <img src="../images/icons/icon_add.gif" border="0px" /> <b>Thêm Mới</b>
                </asp:LinkButton>
                ||
                <asp:LinkButton ID="LinkButton2" runat="server" 
                    OnClientClick="javascript:CloseWindows();" CausesValidation="False">
                <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
                </asp:LinkButton>
                </td>
        </tr>
        </table>
    </td>
</tr>
</table>
  
